<template>
  <div class="wk-warp">
    <h2 class="wk-title">周末去哪儿</h2>
    <ul class="wk-list">
      <li class="wk-item" v-for="item in weekendList" :key="item.id">
        <a href="javascript:;" class="wk-item-link">
          <div class="wk-item-img">
            <img :src="item.imgUrl" />
          </div>
          <div class="wk-product-info">
            <p class="wk-product-name">{{item.title}}</p>
            <p class="wk-product-desc">{{item.comment}}</p>
          </div>
        </a>
      </li>
      <li class="wk-price-desc">
        <span class="iconfont">&#xe62c;</span>
        <div class="price-desc">
          <span>票面价</span>
          是指通过景区指定窗口售卖的纸质门票上标注的价格
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: 'Week',
    props:{
      weekendList:Array
    }
  }
</script>

<style scoped="scoped">
  .wk-warp {
    width: 100%;
    margin-top: 10px;
  }

  .wk-warp .wk-title {
    height: .8rem;
    padding-left: .26rem;
    line-height: .8rem;
    color: #212121;
    text-align: left;
  }

  .wk-warp .wk-list {
    list-style: none;
  }

  .wk-warp .wk-list .wk-item {
    width: 100%;
  }

  .wk-warp .wk-list .wk-item .wk-item-link {
    display: block;
  }

  .wk-warp .wk-list .wk-item .wk-item-link .wk-item-img {
    width: 100%;
    height: 2.91282rem;
    background-color: green;
  }

  .wk-warp .wk-list .wk-item .wk-item-link .wk-item-img img {
    width: 100%;
    height: 100%;
  }

  .wk-warp .wk-list .wk-item .wk-item-link .wk-product-info {
    text-align: left;
    padding-left: .26rem;
  }


  .wk-warp .wk-list .wk-item .wk-item-link .wk-product-info .wk-product-name {
    overflow: hidden;
    padding-right: 1.4rem;
    color: #212121;
    font-size: .28rem;
    line-height: .48rem;
    white-space: nowrap;
    text-overflow: ellipsis
  }

  .wk-warp .wk-list .wk-item .wk-item-link .wk-product-info .wk-product-desc {
    overflow: hidden;
    padding-right: 1.4rem;
    color: #616161;
    font-size: .24rem;
    line-height: .42rem;
    white-space: nowrap;
    text-overflow: ellipsis
  }

  .wk-warp .wk-list .wk-price-desc {
    margin-top: .1rem;
    padding: .14rem .25rem;
    font-size: .24rem;
    line-height: .32rem;
    background: #fff;
    color: #616161;
    text-align: left;
  }

  .wk-warp .wk-list .wk-price-desc span {
    font-weight: bold;
    font-size: .3rem;
  }

  .wk-warp .wk-list .wk-price-desc div {
    display: inline-block;

  }
</style>
